function updateAssets(assetsId) {
	var url = '/CMS/signedInfo/signedInfoList.ht';
	var flag = "0"; /*<![CDATA[*/
	if (!assetsId) {
		return false;
	} else {
		url = url + "?assetsId=" + assetsId + "&flag=" + flag;
		locationHref(url);
	} /*]]>*/
}

function view(assetsId) {
	var url = '/CMS/signedInfo/signedInfoList.ht';
	var flag = "1"; /*<![CDATA[*/
	if (!assetsId) {
		return false;
	} else {
		url = url + "?assetsId=" + assetsId + "&flag=" + flag;
		locationHref(url);
	} /*]]>*/
}

function showSigned(id, signeStatus, signeType) { /*<![CDATA[*/
	locationHref('/CMS/signedInfo/updateSigned.ht' + "?signedNo=" + id + "&signeStatus=" + signeStatus + "&signeType=" + signeType); /*]]>*/
}


function delect(id) { /*<![CDATA[*/
	if (!id) {
		_alert("对不起，信息不全，请联系管理员");
		return;
	} else {
		var msg = '是否删除所选记录';
		_confirm("<span style='color:#FE6600'>" + msg + "</span>", function() {
			$.ajax({
				url: '/CMS/signedInfo/delectSigned.ht',
				data: {
					signedNo: id
				},
				success: function(data) {
					if (data.code == 0) {
						_alert(data.message);
						var listUrl = '/CMS/signedInfo/signedInfoList.ht';
						locationHref(listUrl);
					} else {
						_alert("不能删除状态为已申报或进场待审核的数据");
					}
				}
			})
		})
	} /*]]>*/
}

function search() {
	if (!$("#search").val()) {
		_alert("请输入编号或客户名称");
		return false;
	} else {
		return true;
	}
}